import axios from '@/libs/request/axios'
// 保存附加贷项目
export const saveExtrasProject = (params) => {
    return axios.request({
        url: `/product/extrasProgramConfig/saveExtrasProject`,
        params: params,
        method: 'post'
    })
}
// 分页获取附加贷项目
export const getExtrasProjectDatas = (params) => {
    return axios.request({
        url: '/product/extrasProgramConfig/getExtrasProjectDatas',
        data: params,
        method: 'post'
    })
}
// 上移附加贷项目
export const upPlan = (params) => {
    return axios.request({
        url: '/product/extrasProgramConfig/upPlan',
        params: params,
        method: 'post'
    })
}
// 下移附加贷项目
export const downPlan = (params) => {
    return axios.request({
        url: '/product/extrasProgramConfig/downPlan',
        params: params,
        method: 'post'
    })
}
// 删除附加贷项目
export const deleteById = (id, params) => {
    return axios.request({
        url: `/product/extrasProgramConfig/delById/${id}`,
        data: params,
        method: 'delete'
    })
}
//搜索产品
export const getselectProductData = (params) => {
    return axios.request({
        url: '/product/extrasProgramConfig/getselectProductData',
        data: params,
        method: 'post'
    })
}
//根据产品ID搜索子产品
export const getselectProductDataByID = (params) => {
    return axios.request({
        url: '/product/extrasProgramConfig/getselectProductDataByID',
        data: params,
        method: 'post'
    })
}
// 移动
export const moveTemplateAll = (params) => {
    return axios.request({
        url: `/product/extrasProgramConfig/moveTemplateAll`,
        params: params,
        method: 'post'
    })
}
